﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DiscreteMath
{
    /// <summary>
    /// Defines methods for devices that can recognize a given language.
    /// </summary>
    public interface ILanguageRecognizer
    {
        /// <summary>
        /// Reads the given word and returns a value indicating whether it belongs to the language recognized by this object.
        /// </summary>
        /// <param name="word">The word to read.</param>
        /// <returns>
        ///   <c>True</c> if the device accepts the word, <c>False</c> otherwise.
        /// </returns>
        bool ReadWord(IEnumerable<char> word);
    }
}
